package com.joe.learn.jvm;

/**
 * VM:  -XX:PermSize=5M -XX:MaxPermSize=5M -Xms5M -Xmx5M -XX:-UseGCOverheadLimit
 */
public class OutOfMemoryErrorTest {

    /**
     * ddd
     */
    private String abd;

    public static void main(String[] args) {
        StringBuffer name = new StringBuffer("Hello");
        //我擦，这是个幂数运算，2的n次方个
        for (int i = 0; i < 20; i++) {
            name.append(name);
        }
        System.out.println(name);
    }




    /**
     * 获取 ddd
     */
    public String getAbd() {
        return this.abd;
    }

    /**
     * 设置 ddd
     */
    public void setAbd(String abd) {
        this.abd = abd;
    }
}
